package com.example.cyk.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mysql.jdbc.log.Log;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户身份
 */
@Data
public class User implements Serializable {

    private Long id;
    private String username;
    private String password;
    private byte isAdmin;
    private byte state;
    //格式化时间处理
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

}
